package com.szkiti.myautils.utils;

import android.annotation.SuppressLint;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 日期转换
 * @author WangLinkai
 *
 */
@SuppressLint("SimpleDateFormat")
 public class DateUtils {

	public static String formateDate(String pattern, long timestamp) {
		SimpleDateFormat sdf = new SimpleDateFormat(pattern);
		Date date = new Date(timestamp);
		return sdf.format(date);
	}
}
